package cn.yuanqiao.web.controller.archive.sync.task;

import cn.yuanqiao.archive.task.SyncTaskZTService;
import cn.yuanqiao.common.core.domain.R;
import cn.yuanqiao.common.web.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/archive/SyncTaskZTController")
public class SyncTaskZTController extends BaseController {

    @Autowired
    private SyncTaskZTService syncTaskZTService;

    @PostMapping("/syncTask")
    public R<String> syncTask(@RequestBody Map<String,Object> map){
        syncTaskZTService.syncTask(map);
        return R.ok("发送成功");
    }

}
